import os
import unittest
from htmltestreport import HTMLTestReport

from config import DIR_PATH

# 组合测试套件
suite = unittest.defaultTestLoader.discover("./script")
report_path = DIR_PATH + os.sep + 'report' + os.sep + 'p2p.html'
# 执行测试套件
HTMLTestReport(report_path, '接口自动化测试报告').run(suite)